package com.john.booter.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "booter", locations = "classpath:config/booter.properties") 
public class BooterSettings {
	/**
	 * 文件上传临时路径
	 */
	private String fileUploadTempPath;
	/**
	 * 文件上传永久路径
	 */
	private String fileUploadPath;
	/**
	 * 文件超时期限(m)
	 */
	private Integer fileUploadTimeout;
	/**
	 * 图片预览服务器URL
	 */
	private String imageViewURL;

	/**
	 * 获取项目文件上传永久路径
	 * @return 文件上传永久路径
	 */
	public String getFileUploadPath() {
		return fileUploadPath;
	}

	public void setFileUploadPath(String fileUploadPath) {
		this.fileUploadPath = fileUploadPath;
	}

	/**
	 * 图片预览服务器URL
	 * @return 图片预览服务器URL
	 */
	public String getImageViewURL() {
		return imageViewURL;
	}

	public void setImageViewURL(String imageViewURL) {
		this.imageViewURL = imageViewURL;
	}

	/**
	 * 文件上传临时路径
	 * @return 文件上传临时路径
	 */
	public String getFileUploadTempPath() {
		return fileUploadTempPath;
	}

	public void setFileUploadTempPath(String fileUploadTempPath) {
		this.fileUploadTempPath = fileUploadTempPath;
	}

	/**
	 * 文件超时期限(m)
	 * @return 文件超时期限(m)
	 */
	public Integer getFileUploadTimeout() {
		return fileUploadTimeout;
	}

	public void setFileUploadTimeout(Integer fileUploadTimeout) {
		this.fileUploadTimeout = fileUploadTimeout;
	}
	
}
